<?php

namespace addons\zzcash;

use app\common\library\Menu;
use think\Addons;

class Zzcash extends Addons
{
    public function install()
    {
        Menu::delete('zzcash');
        Menu::create([
            [
                'name'    => 'zzcash',
                'title'   => '资金管理',
                'icon'    => 'fa fa-dollar',
                'ismenu'  => 1,
                'weigh'   => 99999,
                'sublist' => [
                    [
                        'name'   => 'zzcash/in',
                        'title'  => '充值记录',
                        'ismenu' => 1,
                    ],
                    [
                        'name'   => 'zzcash/out',
                        'title'  => '提现记录',
                        'ismenu' => 1,
                    ],
                ]
            ]
        ]);
        return true;
    }

    public function uninstall()
    {
        return true;
    }
}
